import { Module } from '@nestjs/common';
import { APP_GUARD } from '@nestjs/core';
import { AuthGuard } from 'src/core/guards/auth.guard';
import { SystemModule } from './system/system.module';
import { IndustryModule } from './industry/industry.module';
import { WelfareModule } from './welfare/welfare.module';
import { PositionModule } from './position/position.module';
import { AccountModule } from './account/account.module';

@Module({
  imports: [SystemModule, IndustryModule, WelfareModule, PositionModule, AccountModule],
  controllers: [],
  providers: [
    {
      provide: APP_GUARD,
      useClass: AuthGuard,
    },
  ],
  exports: [SystemModule, IndustryModule, WelfareModule, PositionModule],
})
export class AdminModule {}
